package string;

/**
 * String toUpperCase()
 * String toLowerCase()
 * 全转大写/小写
 */

public class ToUpperCaseDemo {
    public static void main(String[] args) {
        String s = "thinking in java";
        String s1 = s.toUpperCase();
        System.out.println(s1);

        String t = s1.toLowerCase();
        System.out.println(t);

        String input = "A35faCv4P";
        String code = "a35FACv4";

        if(code.equalsIgnoreCase(input)){//判断输入字符串不区分大小写
            System.out.println("正确");
        }else {
            System.out.println("错了");
        }

    }
}
